package integer;

public class Main {

    // 整数m的位数
    static int bitNum(int n) {

        if (n == 0)
            return 0;

        return 1 + bitNum(n / 10);
    }

    public static void main(String[] args) {

        System.out.println(bitNum(1234566777));

    }
}
